package recycle.pojo;

import java.util.Date;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
* 描述：购物车表实体类
* @author 孙冉
* @date 2019/07/22
*/
public class Ordercart implements Serializable {

   /**回购车ID*/
    private Integer cartId;
   /**用户ID*/
    private Integer customerId;
   /**商品ID*/
    private Integer productId;
   /**回购价格*/
	private Object price;
   /**加入购物车时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date addTime;
   /**最后修改时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date modifiedTime;
   /**其他*/
    private String other1;
   /**其他*/
    private String other2;

    public Ordercart(){}
    
    public Ordercart(Integer cartId,Integer customerId,Integer productId,Object price,Date addTime,Date modifiedTime,String other1,String other2){
        this.cartId = cartId;
        this.customerId = customerId;
        this.productId = productId;
        this.price = price;
        this.addTime = addTime;
        this.modifiedTime = modifiedTime;
        this.other1 = other1;
        this.other2 = other2;
    }

   /**获取回购车ID属性的值*/
    public Integer getCartId() {
        return this.cartId;
    }
   /**设置回购车ID属性的值*/
    public void setCartId(Integer cartId) {
        this.cartId = cartId;
    }
   /**获取用户ID属性的值*/
    public Integer getCustomerId() {
        return this.customerId;
    }
   /**设置用户ID属性的值*/
    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }
   /**获取商品ID属性的值*/
    public Integer getProductId() {
        return this.productId;
    }
   /**设置商品ID属性的值*/
    public void setProductId(Integer productId) {
        this.productId = productId;
    }
   /**获取回购价格属性的值*/
	public Object getPrice() {
        return this.price;
    }
   /**设置回购价格属性的值*/
    public void setPrice(Object price) {
        this.price = price;
    }
   /**获取加入购物车时间属性的值*/
    public Date getAddTime() {
        return this.addTime;
    }
   /**设置加入购物车时间属性的值*/
    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }
   /**获取最后修改时间属性的值*/
    public Date getModifiedTime() {
        return this.modifiedTime;
    }
   /**设置最后修改时间属性的值*/
    public void setModifiedTime(Date modifiedTime) {
        this.modifiedTime = modifiedTime;
    }
   /**获取其他属性的值*/
    public String getOther1() {
        return this.other1;
    }
   /**设置其他属性的值*/
    public void setOther1(String other1) {
        this.other1 = other1;
    }
   /**获取其他属性的值*/
    public String getOther2() {
        return this.other2;
    }
   /**设置其他属性的值*/
    public void setOther2(String other2) {
        this.other2 = other2;
    }
}
